package service.serviceImpl.serviceImpl;

import dao.UserDao;
import entity.UserEntity;
import org.springframework.stereotype.Service;
import service.serviceImpl.UserService;

import javax.annotation.Resource;


/**
 * Created by Administrator on 2018/4/8.
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    public UserEntity getByUserName(String userName) {
        return userDao.getByUser(userName);
    }

    /**
     * 注册
     * @param userEntity
     * @return
     */
    public void registerUser(UserEntity userEntity){
        userDao.registerUser(userEntity);
    }

}
